package com.dc.event.config.impl;

import java.util.Map;

import com.dc.event.config.ListenerConfig;

public class DefaultListenerConfig<T> implements ListenerConfig<T> {
	private Class<T> clazz;
	private Map<String, String> parameter;
	
	public DefaultListenerConfig(Class<T> clazz,Map<String, String> parameter)throws Exception{
		this.clazz = clazz;
		this.parameter = parameter;
	}
	@Override
	public Class<T> getListenerClass() {
		return clazz;
	}

	@Override
	public String getListenerParam(String key) {
		return parameter.get(key);
	}

}
